package com.ruoyi.safe.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合作单位-不良记录对象 common_cooperator_badness
 * 
 * @author ruoyi
 * @date 2023-11-08
 */
public class CommonCooperatorBadness extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 合作单位ID */
    @Excel(name = "合作单位ID")
    private Long cooperatorId;

    /** 事件名称 */
    @Excel(name = "事件名称")
    private String badnessName;

    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date happenTime;

    /** 原因 */
    @Excel(name = "原因")
    private String cause;

    /** 描述 */
    @Excel(name = "描述")
    private String commonDescribe;

    /** 分类状态（0正常 1停用） */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCooperatorId(Long cooperatorId) 
    {
        this.cooperatorId = cooperatorId;
    }

    public Long getCooperatorId() 
    {
        return cooperatorId;
    }
    public void setBadnessName(String badnessName) 
    {
        this.badnessName = badnessName;
    }

    public String getBadnessName() 
    {
        return badnessName;
    }
    public void setHappenTime(Date happenTime) 
    {
        this.happenTime = happenTime;
    }

    public Date getHappenTime() 
    {
        return happenTime;
    }
    public void setCause(String cause) 
    {
        this.cause = cause;
    }

    public String getCause() 
    {
        return cause;
    }

    public String getCommonDescribe() {
        return commonDescribe;
    }

    public void setCommonDescribe(String commonDescribe) {
        this.commonDescribe = commonDescribe;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cooperatorId", getCooperatorId())
            .append("badnessName", getBadnessName())
            .append("happenTime", getHappenTime())
            .append("cause", getCause())
            .append("commonDescribe", getCommonDescribe())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
